home *** CD-ROM | disk | FTP | other *** search
- // Copyright 2001 Macromedia, Inc. All rights reserved.
- function isDOMRequired() {
- // return true. This will insert the object into the design view.
- return true;
- }
-
- function isAsset() {
- return true;
- }
-
- function objectTag(assetArgs) {
- var bDialogState = dw.getShowDialogsOnInsert();
- // Return the html tag that should be inserted
- var theMovie = dw.doURLEncoding(browseForFileURL());
-
- if (assetArgs)
- theMovie = assetArgs;
- if ((theMovie == '') && bDialogState) { return ''; }
-
- // if (!theMovie) theMovie = '.swf';
-
- rtnStr='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
- ' CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="32" HEIGHT="32">\n' +
- '<PARAM NAME="movie" VALUE="' + theMovie + '"> <PARAM NAME="quality" VALUE="high">\n' +
- '<EMBED SRC="' + theMovie +
- '" quality="high" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" ' +
- 'TYPE="application/x-shockwave-flash" WIDTH="32" HEIGHT="32">'+
- '</EMBED></OBJECT>';
-
- prefsAccessibilityOption = dw.getPreferenceString("Accessibility", "Accessibility Media Options", "");
- if (prefsAccessibilityOption=='TRUE') {rtnStr= addAccessibility(rtnStr);}
-
- return rtnStr;
- }
-
-
- function addAccessibility(rtnStr) {
- var cmdFile = dreamweaver.getConfigurationPath() + "/Commands/Object Options.htm";
- var cmdDOM = dreamweaver.getDocumentDOM(cmdFile);
-
- cmdDOM.parentWindow.setFormItem(rtnStr);
- dreamweaver.popupCommand("Object Options.htm");
- return (cmdDOM.parentWindow.returnAccessibilityStr(rtnStr));
- }